package org.ushio.nchu_22201402.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.ushio.common_module.entity.Admin;

import java.util.List;

@Mapper
public interface Admin_LoginMapper extends BaseMapper<Admin> {
    @Select("select * from admin")
    List<Admin> AllAdmin();

    @Select("select * from admin where admin.admin_id = #{admin_id}")
    Admin findById(@Param("admin_id")int admin_id);


}
